package com.general.client.widgets.yesnomodal;

import net.customware.gwt.presenter.client.widget.WidgetDisplay;

import com.general.client.action.ActionHandler;
import com.general.client.basewidget.BasePresnter;
import com.google.gwt.event.shared.HandlerRegistration;

public interface YesNoModalPresenter extends BasePresnter {
	void setText(String text);

	void show(boolean show);

	HandlerRegistration addYesActionHandler(ActionHandler handler);

	HandlerRegistration addNoActionHandler(ActionHandler handler);

	public interface Display extends WidgetDisplay {
		void show(boolean show);

		void setText(String text);

		HandlerRegistration addYesActionHandler(ActionHandler handler);

		HandlerRegistration addNoActionHandler(ActionHandler handler);
	}

}
